﻿<%@ Page Title="Edición de Nóminas" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmNomina.aspx.cs" Inherits="UI.Secretaria.frmNomina" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ OutputCache Location="None" VaryByParam="None" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 33px;
        }
        .style3
        {
        }
        .style4
        {
            width: 186px;
        }
        .style6
        {
            width: 117px;
        }
        .style7
        {
            width: 57px;
        }
        .style8
        {
            width: 33px;
            height: 47px;
        }
        .style9
        {
            height: 47px;
            text-align: right;
        }
        .style10
        {
            width: 57px;
            height: 47px;
        }
        .style11
        {
            width: 117px;
            height: 47px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <style type="text/css">
 
#BackGround
{
    
position: fixed;
top:0px;
bottom:0px;
left:0px;
right:0px;
overflow:hidden;
padding:0;
margin:0px;
background-color:#F0F0F0;
filter:alpha(opacity=80);
opacity:0.8;
z-index:100000;

    
}

#Progress
{
    position: fixed;
    top: 40%;
    left: 20%;
    height: 20%;
    width: 20%;
    z-index: 100001;
    background-color: #FFFFFF;
    border: 1px solid Gray;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../Imagenes/Gif/cargando.gif');
            bottom: 258px;
        }
        
  </style> 
<asp:UpdatePanel ID="panel1" runat="server">

<ContentTemplate>
<table class="style1" style="width: 96%">
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td class="style4">
                &nbsp;</td>
            <td class="style7">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style8">
                </td>
            <td colspan="2">
                Edición de Nóminas</td>
            <td class="style10">
                </td>
            <td class="style11">
                </td>
            <td class="style9">
                <asp:ImageButton ID="btnRegresar" runat="server" Height="40px" 
                    ImageUrl="~/Imagenes/Botones/regresar.png" onclick="btnRegresar_Click" 
                    Width="40px" ToolTip="Regresar" />
&nbsp;
                <asp:ImageButton ID="btnAgregar" runat="server" Height="40px" 
                    ImageUrl="~/Imagenes/Botones/Agregar.jpg" Width="40px" 
                    onclick="btnAgregar_Click" />
                &nbsp;&nbsp;<asp:ImageButton ID="ImageButton1" runat="server" Height="40px" 
                    ImageUrl="~/Imagenes/Botones/Procesar.png" onclick="ImageButton1_Click" 
                    Width="40px" />
&nbsp;
                <asp:ImageButton ID="btnEliminar" runat="server" 
                    ImageUrl="~/Imagenes/Botones/Cancelar.png" ToolTip="Elimina Registros" 
                    onclick="btnEliminar_Click" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td class="style4">
                &nbsp;</td>
            <td class="style7">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                <asp:Label ID="Label1" runat="server" Text="Semestre"></asp:Label>
            </td>
            <td class="style4">
                <asp:DropDownList ID="ddlSemestre" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlSemestre_SelectedIndexChanged" Width="148px" 
                    Enabled="False">
                </asp:DropDownList>
            </td>
            <td class="style7">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                <asp:Label ID="Label2" runat="server" Text="Especialidad"></asp:Label>
            </td>
            <td class="style4">
                <asp:DropDownList ID="ddlEspecialidad" runat="server" Width="148px" 
                    Enabled="False">
                </asp:DropDownList>
            </td>
            <td class="style7">
                <asp:Label ID="Label3" runat="server" Text="Ciclo"></asp:Label>
            </td>
            <td class="style6">
                <asp:DropDownList ID="ddlCiclo" runat="server" Width="35px" Enabled="False">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3" colspan="2">
                <asp:Label ID="lblMensajePrincipal" runat="server" style="color: #FF0000"></asp:Label>
            </td>
            <td class="style7">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
            <td class="style4">
                &nbsp;</td>
            <td class="style7">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width: 696px">
    <tr>
    <td align="center">
        <asp:GridView ID="grvAlumno" runat="server" AutoGenerateColumns="False" 
            Caption="Nomina de Alumnos" 
            DataKeyNames="Semestre,COD_ESPEC,COD_ALUMNO,Condicion_Alumno,Descripcion_Estado,Edad,Nombres,Usuario_Registro,Fecha_Registro,ObservacionRD,SEXO" 
            onrowdatabound="grvAlumno_RowDataBound" Width="912px">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkActivo" runat="server" />
                    </ItemTemplate>
                    <HeaderTemplate>
                        <asp:CheckBox ID="chkActivo2" runat="server" />
                    </HeaderTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="COD_ALUMNO" HeaderText="Código">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="nombres" HeaderText="Nombres">
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Condicion_Alumno" HeaderText="IdEstado" 
                    Visible="false" />
                <asp:BoundField DataField="Descripcion_Estado" HeaderText="Estado" 
                    Visible="False">
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="edad" HeaderText="Edad">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:DropDownList ID="ddlEstadoAlumno" runat="server" Width="240px">
                            <asp:ListItem Value="1">Regular</asp:ListItem>
                            <asp:ListItem Value="2">Reincorporado</asp:ListItem>
                            <asp:ListItem Value="3">Reingresante</asp:ListItem>
                            <asp:ListItem Value="4">Licencia</asp:ListItem>
                            <asp:ListItem Value="5">Ampliación de Licencia</asp:ListItem>
                            <asp:ListItem Value="6">Retiro Administrativo (voluntario)</asp:ListItem>
                            <asp:ListItem Value="7">Retiro Administrativo (No matriculado)</asp:ListItem>
                            <asp:ListItem Value="8">Retiro Académico (Deficiencia Acad.)</asp:ListItem>
                            <asp:ListItem Value="9">Retiro Académico (Límite de Inasistencias)</asp:ListItem>
                            <asp:ListItem Value="10">Reingreso / Licencia</asp:ListItem>
                        </asp:DropDownList>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="Id_Estado_Condicion" HeaderText="idEstado" 
                    Visible="False" />
                <asp:BoundField DataField="Usuario_Registro" HeaderText="Usuario Registro" />
                <asp:BoundField DataField="Fecha_Registro" HeaderText="Fecha Registro" />
                <asp:TemplateField HeaderText="R.D.">
                    <ItemTemplate>
                        <asp:TextBox ID="txtRD" runat="server" Width="151px" Text ='<%#Eval("ObservacionRD") %>' ></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ObservacionRD" HeaderText="OBS" Visible="false" />
                <asp:BoundField DataField="SEXO" HeaderText="SEXO" Visible="false" />
                <asp:BoundField DataField="PAGO_MATRICULA" HeaderText="Pago Matricula" />
                <asp:BoundField DataField="Usuario_Modifica" HeaderText="Usuario Modifica" />
                <asp:BoundField DataField="Fecha_Modifica" HeaderText="Fecha Modificación" />
            </Columns>
        </asp:GridView>
    </td>
    </tr>
    </table>
</ContentTemplate>

</asp:UpdatePanel>
    
       
    
      <br />
      <asp:Panel ID="Panel2" runat="server"  Width="681px" 
        style="text-align: center">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table class="BTabla">
            <tr>
                <td class="filaTabla" colspan="5">
                    Búsqueda de Alumnos</td>
                <td class="filaTabla">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                </td>
                <td class="style23">
                </td>
                <td class="style21">
                </td>
                <td class="style18">
                </td>
                <td class="style18">
                </td>
                <td class="style18">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style26">
                    &nbsp;</td>
                <td class="style27">
                    Codigo/Nombre</td>
                <td class="style22">
                    <asp:TextBox ID="txtCodigo" runat="server" Width="155px"></asp:TextBox>
                </td>
                <td style="text-align: left">
                    <asp:Button ID="btnBuscarModal" runat="server" Height="35px" Text="Buscar" 
                        Width="90px" onclick="btnBuscarModal_Click" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style26">
                    &nbsp;</td>
                <td class="style24" colspan="3">
                    <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style26" colspan="6">
                    <asp:GridView ID="grvAgregaAlumnos" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" 
                        onselectedindexchanged="grvAgregaAlumnos_SelectedIndexChanged" 
                        Width="664px" onpageindexchanging="grvAgregaAlumnos_PageIndexChanging">
                        <Columns>
                            <asp:CommandField SelectText="Agregar" ShowSelectButton="True" />
                            <asp:BoundField DataField="COD_ALUMNO" HeaderText="Código">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="nombres" HeaderText="Nombres">
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CICLO" HeaderText="Ciclo" />
                            <asp:BoundField DataField="COD_ESPEC" HeaderText="Especialidad" />
                            <asp:BoundField DataField="condicion" HeaderText="Estado" />
                            <asp:BoundField DataField="Descripcion" HeaderText="Descripción Estado">
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="edad" HeaderText="Edad">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Id_Estado_Condicion" HeaderText="idEstado" 
                                Visible="False" />
                            <asp:BoundField DataField="Usuario_Registro" HeaderText="Usuario Registro" />
                            <asp:BoundField DataField="Fecha_Registro" HeaderText="Fecha Registro" />
                            <asp:BoundField DataField="SEXO" HeaderText="SEXO" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="style26">
                    &nbsp;</td>
                <td class="style24" colspan="3">
                    <asp:Button ID="btnSalir" runat="server" Height="32px" onclick="btnSalir_Click" 
                        Text="Salir" Width="90px" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        
        <br />
        
        <table >
            <tr>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
   
   </ContentTemplate>
   </asp:UpdatePanel>

    </asp:Panel>

      <br />

       
   
    <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="panel1">
    <ProgressTemplate>
    <div ID="BackGround">
    <div ID="Progress">
    <h6> <p style="text-align:center"><b> Procesando Datos,espere porfavor...<br /></p></h6>
     </div>
    
    </div>  
    </ProgressTemplate>
    </asp:UpdateProgress>
    
   
   
    <asp:HiddenField  ID="HiddenFiel1" runat="server"/>
    <asp:ModalPopupExtender ID="mpeAgregaAlumno" runat="server"
    PopupControlID="Panel2" TargetControlID="HiddenFiel1" BackgroundCssClass="modalBackground" 
    
    >
       

   

    </asp:ModalPopupExtender>
      <br />




</asp:Content>
